package com.ls.controller.loginrecord;


import com.ls.controller.loginrecord.model.QueryLoginRecordModel;
import com.ls.entity.SysUser;
import com.ls.service.ILoginRecordService;
import com.ls.utils.ResultData;
import com.ls.utils.login.CurrentUser;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户登录记录表，管理员和C端用户都放在这个表里面 前端控制器
 * </p>
 *
 * @author
 * pengyu
 * @since 2024-10-01
 */
@RestController
@RequestMapping("/loginRecord")
@RequiredArgsConstructor
public class LoginRecordController {

    private final ILoginRecordService service;

    /** 查询登录记录 */
    @GetMapping(value = "getPaging")
    public ResultData getPaging(QueryLoginRecordModel model) {
        return service.getPaging(model);
    }

}

